<!-- 面包屑封装 -->
<template>
  <div class="bread">
    <div class="example-container">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item v-for="(item,index) in breadList" :key="index" :to="{ path: item.path }">
          {{item.title}}
        </el-breadcrumb-item>
      </el-breadcrumb>
    </div>
  </div>
</template>
<script>
	import {mapState} from 'Vuex';
  export default {
		  
	  computed:{
	     ...mapState(["bread"])
	  },
    data() {
      return {
        breadList: [] // 路由集合
      }
    },

    methods: {

    },
    created() {
        this.breadList=this.bread

    }
  }
</script>
<style>

</style>
